package ui;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;

public class DepositFundsSpending extends JPanel {

	private JLabel lblWithdrawCashMenu;
	private JLabel lblPleaseSelectAnAmount;
	private JLabel lblNote;
	private JLabel lblXA9;
	private JLabel lblLogo;
	private JButton btn$50;
	private JButton btn$20;
	private JButton btn$10;
	private JButton btn$5;
	private JButton btn$100;
	private JButton btnCancelTransaction;

	public DepositFundsSpending() {
		setBackground(UIManager.getColor("Label.background"));
		setLayout(null);

		lblWithdrawCashMenu = new JLabel("Deposit funds menu (Spending)");
		lblWithdrawCashMenu.setBackground(UIManager
				.getColor("Label.background"));
		lblWithdrawCashMenu.setOpaque(true);
		lblWithdrawCashMenu.setHorizontalAlignment(SwingConstants.CENTER);
		lblWithdrawCashMenu.setForeground(Color.BLACK);
		lblWithdrawCashMenu.setFont(new Font("Eurostile", Font.BOLD, 24));
		lblWithdrawCashMenu.setBounds(0, 94, 735, 28);
		add(lblWithdrawCashMenu);

		lblPleaseSelectAnAmount = new JLabel(
				"Please select an amount to insert cash");
		lblPleaseSelectAnAmount.setHorizontalAlignment(SwingConstants.CENTER);
		lblPleaseSelectAnAmount.setForeground(Color.BLACK);
		lblPleaseSelectAnAmount.setFont(new Font("Eurostile", Font.PLAIN, 14));
		lblPleaseSelectAnAmount.setBounds(0, 128, 735, 16);
		add(lblPleaseSelectAnAmount);
		
		lblNote = new JLabel(
				"NOTE THAT ONLY BILLS ARE ACCEPTED.");
		lblNote.setHorizontalAlignment(SwingConstants.CENTER);
		lblNote.setForeground(Color.BLACK);
		lblNote.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		lblNote.setBounds(0, 145, 735, 16);
		add(lblNote);

		btn$100 = new JButton("$ 100");
		btn$100.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$100.setBounds(369, 296, 200, 55);
		add(btn$100);

		btn$50 = new JButton("$ 50");
		btn$50.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$50.setBounds(156, 233, 200, 55);
		add(btn$50);

		btn$20 = new JButton("$ 20");
		btn$20.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$20.setBounds(369, 233, 200, 55);
		add(btn$20);

		btn$10 = new JButton("$ 10");
		btn$10.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$10.setBounds(369, 170, 200, 55);
		add(btn$10);

		btn$5 = new JButton("$ 5");
		btn$5.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 12));
		btn$5.setBounds(156, 170, 200, 55);
		add(btn$5);

		btnCancelTransaction = new JButton("Cancel transaction");
		btnCancelTransaction.setForeground(UIManager
				.getColor("CheckBox.select"));
		btnCancelTransaction.setFont(new Font("Eurostile", Font.PLAIN
				| Font.BOLD, 13));
		btnCancelTransaction.setBounds(156, 296, 200, 50);
		add(btnCancelTransaction);

		lblXA9 = new JLabel("\u00A92013 CBS HA.IT (Gruppe XA-9)\t\t ");
		lblXA9.setForeground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setBackground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setHorizontalAlignment(SwingConstants.CENTER);
		lblXA9.setFont(new Font("Eurostile", Font.PLAIN, 11));
		lblXA9.setBounds(0, 423, 735, 50);
		add(lblXA9);

		lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(
				"/Users/martinotto-sidelmann/Desktop/Zombium.png"));
		lblLogo.setBounds(530, 12, 200, 70);
		add(lblLogo);

	}

	public JButton getBtn$50() {
		return btn$50;
	}

	public JButton getBtn$20() {
		return btn$20;
	}

	public JButton getBtn$10() {
		return btn$10;
	}

	public JButton getBtn$5() {
		return btn$5;
	}

	public JButton getBtn$100() {
		return btn$100;
	}

	public JButton getBtnCancelTransaction() {
		return btnCancelTransaction;
	}

	public void addActionListener(ActionListener l) {

		btn$20.addActionListener(l);
		btn$10.addActionListener(l);
		btn$20.addActionListener(l);
		btn$50.addActionListener(l);
		btn$100.addActionListener(l);
		btnCancelTransaction.addActionListener(l);

	}
}